import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}
export function getInfo() {
  return request({
    url: '/getLoginInfo',
    method: 'get'
  })
}

export function getLoginInfoMenus() {
  //路由菜单
  return request({
    url: '/getLoginInfoMenus',
    method: 'get'
  })

}


export function logout() {
  return request({
    url: '/logout',
    method: 'get'
  })
}
